package com.chaopei.myobj;

/**
 * @Author Corday 天涯
 * @Date 2022/3/4 11:01
 */
public class Manager extends Employee {
    String skill;
    double money;
    @Override
    public String speak() {
        return "高级技术经理!";
    }
    public Manager(){}

    public Manager(String skill, double money) {
        this.skill = skill;
        this.money = money;
    }

    public Manager(int eid, String username, String gender, String skill, double money) {
//        调用父类的构造方法，初始化了父类的属性
        super(eid, username, gender);
        this.skill = skill;
        this.money = money;
    }
//生成子类自己的get/set方法，继承父类公共的set/get方法
    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }
}
